<template>
	<view>
		<view v-for="item in 10" :key="item">{{item}}</view>
		<u-sticky bgColor="#fff">
			<u-tabs :list="list1" @click="click"></u-tabs>
		</u-sticky>
		<view v-for="item in 100" :key="item+'a'">{{item}}</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list1: [{
					name: '关注',
				}, {
					name: '推荐',
					badge: {
						isDot: true
					}
				}, {
					name: '电影',
					badge: {
						value: 5
					}
				}, {
					name: '科技'
				}, {
					name: '音乐'
				}, {
					name: '美食'
				}, {
					name: '文化'
				}, {
					name: '财经'
				}, {
					name: '手工'
				}]
			}
		},
		methods: {
			click(item) {
				console.log('item', item);
			}
		}
	}
</script>

<style>
</style>
